﻿using Resolve;
using Resolve.Web;

namespace Tester.Lib
{
    public abstract class XiaoHei : BasePage
    {
        /// <summary>
        /// 获取关联文件路径
        /// </summary>
        /// <returns></returns>
        protected override string GetFilePath()
        {
            string path;
            string requestPath = Request.FilePath;
            int index = requestPath.LastIndexOf(".", System.StringComparison.Ordinal);
            if (index > -1)
            {
                path = "/XiaoHei" + requestPath.Substring(0, index) + "." + ResolveConfig.TemplateExe;
            }
            else
            {
                path = "/XiaoHei" + requestPath + "." + ResolveConfig.TemplateExe;
            }
            return path;
        }
    }
}